`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company: 
// Engineer: 
// 
// Create Date:    20:52:28 04/18/2014 
// Design Name: 
// Module Name:    video_logic 
// Project Name: 
// Target Devices: 
// Tool versions: 
// Description: 
//
// Dependencies: 
//
// Revision: 
// Revision 0.01 - File Created
// Additional Comments: 
//
//////////////////////////////////////////////////////////////////////////////////
module video_logic(
	input	[7:0] LocX_reg,			// X-coordinate of rojobot's location		
	input	[7:0]	LocY_reg,			// Y-coordinate of rojobot's location
	input	 [7:0]	Sensors_reg,	// Sensor readings
	input	 [7:0]	BotInfo_reg,	
	input clk_25MHZ,
	input reset,
	
	output  horiz_sync,
	output  vert_sync,
	output  [2:0] red,
	output  [2:0] green,
	output  [1:0] blue
);




dtg DTG(
	.clock(clk_25MHZ), 
	.rst(reset),
	.horiz_sync(horiz_sync),
	.vert_sync(vert_sync),
	.video_on(video_on),		
	.pixel_row(pixel_row), 
	.pixel_column(pixel_column)
);

coloriser COLORISER(
	.vid_pixel_out(vid_pixel_out),
	.icon(icon),
	.video_on(video_on),
	
	.red(red),	
	.green(green),
	.blue(blue)
 );

icon	ICON(
	.pixel_row(pixel_row),
	.pixel_column(pixel_column),
	.LocX_reg(LocX_reg),			// X-coordinate of rojobot's location		
	.LocY_reg(LocY_reg),			// Y-coordinate of rojobot's location
	.BotInfo_reg(BotInfo_reg),	
	
	.icon(icon)
    );

endmodule
